package com.fullstack.landscape.editor.dao.mapper;

import com.fullstack.landscape.editor.dao.entity.ModuleEntity;

import java.util.List;

/**
 * @author leven.chen
 * @project landscape-editor
 * @date 2019/4/9 19:26
 * @apiNote
 */
public interface ModuleMapper {
    /**
     * 获取列表
     *
     * @return ModuleEntity
     */
    List<ModuleEntity> getList();

    /**
     * 新增模块
     *
     * @param entity entity
     * @return int
     */
    int save(ModuleEntity entity);

    /**
     * 删除模块
     *
     * @param id module id
     * @return int
     */
    int delete(int id);

    /**
     * 更新
     *
     * @param entity entity
     * @return int
     */
    int updateSelectiveById(ModuleEntity entity);

}
